{"ast":null,"code":"import { genComponentStyleHook, mergeToken } from '../../theme/internal';\nimport genMotionStyle from './motion';\n// =============================== Base ===============================\nconst genDrawerStyle = token => {\n  const {\n    componentCls,\n    zIndexPopup,\n    colorBgMask,\n    colorBgElevated,\n    motionDurationSlow,\n    motionDurationMid,\n    padding,\n    paddingLG,\n    fontSizeLG,\n    lineHeightLG,\n    lineWidth,\n    lineType,\n    colorSplit,\n    marginSM,\n    colorIcon,\n    colorIconHover,\n    colorText,\n    fontWeightStrong,\n    drawerFooterPaddingVertical,\n    drawerFooterPaddingHorizontal\n  } = token;\n  const wrapperCls = `${componentCls}-content-wrapper`;\n  return {\n    [componentCls]: {\n      position: 'fixed',\n      inset: 0,\n      zIndex: zIndexPopup,\n      pointerEvents: 'none',\n      '&-pure': {\n        position: 'relative',\n        background: colorBgElevated,\n        [`&${componentCls}-left`]: {\n          boxShadow: token.boxShadowDrawerLeft\n        },\n        [`&${componentCls}-right`]: {\n          boxShadow: token.boxShadowDrawerRight\n        },\n        [`&${componentCls}-top`]: {\n          boxShadow: token.boxShadowDrawerUp\n        },\n        [`&${componentCls}-bottom`]: {\n          boxShadow: token.boxShadowDrawerDown\n        }\n      },\n      '&-inline': {\n        position: 'absolute'\n      },\n      // ====================== Mask ======================\n      [`${componentCls}-mask`]: {\n        position: 'absolute',\n        inset: 0,\n        zIndex: zIndexPopup,\n        background: colorBgMask,\n        pointerEvents: 'auto'\n      },\n      // ==================== Content =====================\n      [wrapperCls]: {\n        position: 'absolute',\n        zIndex: zIndexPopup,\n        transition: `all ${motionDurationSlow}`,\n        '&-hidden': {\n          display: 'none'\n        }\n      },\n      // Placement\n      [`&-left > ${wrapperCls}`]: {\n        top: 0,\n        bottom: 0,\n        left: {\n          _skip_check_: true,\n          value: 0\n        },\n        boxShadow: token.boxShadowDrawerLeft\n      },\n      [`&-right > ${wrapperCls}`]: {\n        top: 0,\n        right: {\n          _skip_check_: true,\n          value: 0\n        },\n        bottom: 0,\n        boxShadow: token.boxShadowDrawerRight\n      },\n      [`&-top > ${wrapperCls}`]: {\n        top: 0,\n        insetInline: 0,\n        boxShadow: token.boxShadowDrawerUp\n      },\n      [`&-bottom > ${wrapperCls}`]: {\n        bottom: 0,\n        insetInline: 0,\n        boxShadow: token.boxShadowDrawerDown\n      },\n      [`${componentCls}-content`]: {\n        width: '100%',\n        height: '100%',\n        overflow: 'auto',\n        background: colorBgElevated,\n        pointerEvents: 'auto'\n      },\n      // ===================== Panel ======================\n      [`${componentCls}-wrapper-body`]: {\n        display: 'flex',\n        flexDirection: 'column',\n        width: '100%',\n        height: '100%'\n      },\n      // Header\n      [`${componentCls}-header`]: {\n        display: 'flex',\n        flex: 0,\n        alignItems: 'center',\n        padding: `${padding}px ${paddingLG}px`,\n        fontSize: fontSizeLG,\n        lineHeight: lineHeightLG,\n        borderBottom: `${lineWidth}px ${lineType} ${colorSplit}`,\n        '&-title': {\n          display: 'flex',\n          flex: 1,\n          alignItems: 'center',\n          minWidth: 0,\n          minHeight: 0\n        }\n      },\n      [`${componentCls}-extra`]: {\n        flex: 'none'\n      },\n      [`${componentCls}-close`]: {\n        display: 'inline-block',\n        marginInlineEnd: marginSM,\n        color: colorIcon,\n        fontWeight: fontWeightStrong,\n        fontSize: fontSizeLG,\n        fontStyle: 'normal',\n        lineHeight: 1,\n        textAlign: 'center',\n        textTransform: 'none',\n        textDecoration: 'none',\n        background: 'transparent',\n        border: 0,\n        outline: 0,\n        cursor: 'pointer',\n        transition: `color ${motionDurationMid}`,\n        textRendering: 'auto',\n        '&:focus, &:hover': {\n          color: colorIconHover,\n          textDecoration: 'none'\n        }\n      },\n      [`${componentCls}-title`]: {\n        flex: 1,\n        margin: 0,\n        color: colorText,\n        fontWeight: token.fontWeightStrong,\n        fontSize: fontSizeLG,\n        lineHeight: lineHeightLG\n      },\n      // Body\n      [`${componentCls}-body`]: {\n        flex: 1,\n        minWidth: 0,\n        minHeight: 0,\n        padding: paddingLG,\n        overflow: 'auto'\n      },\n      // Footer\n      [`${componentCls}-footer`]: {\n        flexShrink: 0,\n        padding: `${drawerFooterPaddingVertical}px ${drawerFooterPaddingHorizontal}px`,\n        borderTop: `${lineWidth}px ${lineType} ${colorSplit}`\n      },\n      // ====================== RTL =======================\n      '&-rtl': {\n        direction: 'rtl'\n      }\n    }\n  };\n};\n// ============================== Export ==============================\nexport default genComponentStyleHook('Drawer', token => {\n  const drawerToken = mergeToken(token, {\n    drawerFooterPaddingVertical: token.paddingXS,\n    drawerFooterPaddingHorizontal: token.padding\n  });\n  return [genDrawerStyle(drawerToken), genMotionStyle(drawerToken)];\n}, token => ({\n  zIndexPopup: token.zIndexPopupBase\n}));","map":{"version":3,"names":["genComponentStyleHook","mergeToken","genMotionStyle","genDrawerStyle","token","componentCls","zIndexPopup","colorBgMask","colorBgElevated","motionDurationSlow","motionDurationMid","padding","paddingLG","fontSizeLG","lineHeightLG","lineWidth","lineType","colorSplit","marginSM","colorIcon","colorIconHover","colorText","fontWeightStrong","drawerFooterPaddingVertical","drawerFooterPaddingHorizontal","wrapperCls","position","inset","zIndex","pointerEvents","background","boxShadow","boxShadowDrawerLeft","boxShadowDrawerRight","boxShadowDrawerUp","boxShadowDrawerDown","transition","display","top","bottom","left","_skip_check_","value","right","insetInline","width","height","overflow","flexDirection","flex","alignItems","fontSize","lineHeight","borderBottom","minWidth","minHeight","marginInlineEnd","color","fontWeight","fontStyle","textAlign","textTransform","textDecoration","border","outline","cursor","textRendering","margin","flexShrink","borderTop","direction","drawerToken","paddingXS","zIndexPopupBase"],"sources":["/data/messenger.client/node_modules/antd/es/drawer/style/index.js"],"sourcesContent":["import { genComponentStyleHook, mergeToken } from '../../theme/internal';\nimport genMotionStyle from './motion';\n// =============================== Base ===============================\nconst genDrawerStyle = token => {\n  const {\n    componentCls,\n    zIndexPopup,\n    colorBgMask,\n    colorBgElevated,\n    motionDurationSlow,\n    motionDurationMid,\n    padding,\n    paddingLG,\n    fontSizeLG,\n    lineHeightLG,\n    lineWidth,\n    lineType,\n    colorSplit,\n    marginSM,\n    colorIcon,\n    colorIconHover,\n    colorText,\n    fontWeightStrong,\n    drawerFooterPaddingVertical,\n    drawerFooterPaddingHorizontal\n  } = token;\n  const wrapperCls = `${componentCls}-content-wrapper`;\n  return {\n    [componentCls]: {\n      position: 'fixed',\n      inset: 0,\n      zIndex: zIndexPopup,\n      pointerEvents: 'none',\n      '&-pure': {\n        position: 'relative',\n        background: colorBgElevated,\n        [`&${componentCls}-left`]: {\n          boxShadow: token.boxShadowDrawerLeft\n        },\n        [`&${componentCls}-right`]: {\n          boxShadow: token.boxShadowDrawerRight\n        },\n        [`&${componentCls}-top`]: {\n          boxShadow: token.boxShadowDrawerUp\n        },\n        [`&${componentCls}-bottom`]: {\n          boxShadow: token.boxShadowDrawerDown\n        }\n      },\n      '&-inline': {\n        position: 'absolute'\n      },\n      // ====================== Mask ======================\n      [`${componentCls}-mask`]: {\n        position: 'absolute',\n        inset: 0,\n        zIndex: zIndexPopup,\n        background: colorBgMask,\n        pointerEvents: 'auto'\n      },\n      // ==================== Content =====================\n      [wrapperCls]: {\n        position: 'absolute',\n        zIndex: zIndexPopup,\n        transition: `all ${motionDurationSlow}`,\n        '&-hidden': {\n          display: 'none'\n        }\n      },\n      // Placement\n      [`&-left > ${wrapperCls}`]: {\n        top: 0,\n        bottom: 0,\n        left: {\n          _skip_check_: true,\n          value: 0\n        },\n        boxShadow: token.boxShadowDrawerLeft\n      },\n      [`&-right > ${wrapperCls}`]: {\n        top: 0,\n        right: {\n          _skip_check_: true,\n          value: 0\n        },\n        bottom: 0,\n        boxShadow: token.boxShadowDrawerRight\n      },\n      [`&-top > ${wrapperCls}`]: {\n        top: 0,\n        insetInline: 0,\n        boxShadow: token.boxShadowDrawerUp\n      },\n      [`&-bottom > ${wrapperCls}`]: {\n        bottom: 0,\n        insetInline: 0,\n        boxShadow: token.boxShadowDrawerDown\n      },\n      [`${componentCls}-content`]: {\n        width: '100%',\n        height: '100%',\n        overflow: 'auto',\n        background: colorBgElevated,\n        pointerEvents: 'auto'\n      },\n      // ===================== Panel ======================\n      [`${componentCls}-wrapper-body`]: {\n        display: 'flex',\n        flexDirection: 'column',\n        width: '100%',\n        height: '100%'\n      },\n      // Header\n      [`${componentCls}-header`]: {\n        display: 'flex',\n        flex: 0,\n        alignItems: 'center',\n        padding: `${padding}px ${paddingLG}px`,\n        fontSize: fontSizeLG,\n        lineHeight: lineHeightLG,\n        borderBottom: `${lineWidth}px ${lineType} ${colorSplit}`,\n        '&-title': {\n          display: 'flex',\n          flex: 1,\n          alignItems: 'center',\n          minWidth: 0,\n          minHeight: 0\n        }\n      },\n      [`${componentCls}-extra`]: {\n        flex: 'none'\n      },\n      [`${componentCls}-close`]: {\n        display: 'inline-block',\n        marginInlineEnd: marginSM,\n        color: colorIcon,\n        fontWeight: fontWeightStrong,\n        fontSize: fontSizeLG,\n        fontStyle: 'normal',\n        lineHeight: 1,\n        textAlign: 'center',\n        textTransform: 'none',\n        textDecoration: 'none',\n        background: 'transparent',\n        border: 0,\n        outline: 0,\n        cursor: 'pointer',\n        transition: `color ${motionDurationMid}`,\n        textRendering: 'auto',\n        '&:focus, &:hover': {\n          color: colorIconHover,\n          textDecoration: 'none'\n        }\n      },\n      [`${componentCls}-title`]: {\n        flex: 1,\n        margin: 0,\n        color: colorText,\n        fontWeight: token.fontWeightStrong,\n        fontSize: fontSizeLG,\n        lineHeight: lineHeightLG\n      },\n      // Body\n      [`${componentCls}-body`]: {\n        flex: 1,\n        minWidth: 0,\n        minHeight: 0,\n        padding: paddingLG,\n        overflow: 'auto'\n      },\n      // Footer\n      [`${componentCls}-footer`]: {\n        flexShrink: 0,\n        padding: `${drawerFooterPaddingVertical}px ${drawerFooterPaddingHorizontal}px`,\n        borderTop: `${lineWidth}px ${lineType} ${colorSplit}`\n      },\n      // ====================== RTL =======================\n      '&-rtl': {\n        direction: 'rtl'\n      }\n    }\n  };\n};\n// ============================== Export ==============================\nexport default genComponentStyleHook('Drawer', token => {\n  const drawerToken = mergeToken(token, {\n    drawerFooterPaddingVertical: token.paddingXS,\n    drawerFooterPaddingHorizontal: token.padding\n  });\n  return [genDrawerStyle(drawerToken), genMotionStyle(drawerToken)];\n}, token => ({\n  zIndexPopup: token.zIndexPopupBase\n}));"],"mappings":"AAAA,SAASA,qBAAqB,EAAEC,UAAU,QAAQ,sBAAsB;AACxE,OAAOC,cAAc,MAAM,UAAU;AACrC;AACA,MAAMC,cAAc,GAAGC,KAAK,IAAI;EAC9B,MAAM;IACJC,YAAY;IACZC,WAAW;IACXC,WAAW;IACXC,eAAe;IACfC,kBAAkB;IAClBC,iBAAiB;IACjBC,OAAO;IACPC,SAAS;IACTC,UAAU;IACVC,YAAY;IACZC,SAAS;IACTC,QAAQ;IACRC,UAAU;IACVC,QAAQ;IACRC,SAAS;IACTC,cAAc;IACdC,SAAS;IACTC,gBAAgB;IAChBC,2BAA2B;IAC3BC;EACF,CAAC,GAAGpB,KAAK;EACT,MAAMqB,UAAU,GAAI,GAAEpB,YAAa,kBAAiB;EACpD,OAAO;IACL,CAACA,YAAY,GAAG;MACdqB,QAAQ,EAAE,OAAO;MACjBC,KAAK,EAAE,CAAC;MACRC,MAAM,EAAEtB,WAAW;MACnBuB,aAAa,EAAE,MAAM;MACrB,QAAQ,EAAE;QACRH,QAAQ,EAAE,UAAU;QACpBI,UAAU,EAAEtB,eAAe;QAC3B,CAAE,IAAGH,YAAa,OAAM,GAAG;UACzB0B,SAAS,EAAE3B,KAAK,CAAC4B;QACnB,CAAC;QACD,CAAE,IAAG3B,YAAa,QAAO,GAAG;UAC1B0B,SAAS,EAAE3B,KAAK,CAAC6B;QACnB,CAAC;QACD,CAAE,IAAG5B,YAAa,MAAK,GAAG;UACxB0B,SAAS,EAAE3B,KAAK,CAAC8B;QACnB,CAAC;QACD,CAAE,IAAG7B,YAAa,SAAQ,GAAG;UAC3B0B,SAAS,EAAE3B,KAAK,CAAC+B;QACnB;MACF,CAAC;MACD,UAAU,EAAE;QACVT,QAAQ,EAAE;MACZ,CA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